package com.example.yk_lx.login;

import androidx.lifecycle.MutableLiveData;

import com.example.yk_lx.baseMVVM.BaseViewModel;

public class LoginViewModel extends BaseViewModel<LoginRepo> {
    @Override
    protected LoginRepo createRepo() {
        return new LoginRepo();
    }
    public MutableLiveData<String> success = new MutableLiveData<>();
    public MutableLiveData<String> fail = new MutableLiveData<>();
    public void login(String username,String password){
        repo.login(username,password,success,fail);
    }
}
